package com.lovo.pis.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lovo.pis.dto.PageBean;
import com.lovo.pis.dto.PowerBean;
import com.lovo.pis.dto.RoleBean;
import com.lovo.pis.dto.UserBean;
import org.springframework.web.bind.annotation.RequestBody;

import javax.management.relation.Role;
import java.util.List;

public interface IRoleService {

    IPage<RoleBean> queryAll(PageBean<RoleBean> pageInfo);

    List<RoleBean> queryAllRoleName();

    List<PowerBean> queryPowerName(List<Integer> roleIdList);

    RoleBean queryById(int id);

    boolean changeById(RoleBean roleBean);

    void addRole(RoleBean roleBean);

    void removeById(int id);
}
